home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / ATBSB002.ZIP / ERROR0.H < prev    next >
C/C++ Source or Header  |  1993-05-19  |  2KB  |  52 lines

  1. /*
  2.     ERROR0.H -- short version of the include file to import
  3.     API from ERROR.DLL
  4.     Copyright (C) Eugene Sokolov 1992-93, (516)632-7892,
  5.     esokolov@sbchm1.chem.sunysb.edu
  6.  
  7.     You can freely copy, change or redistribute this file as long
  8.     as this notice remains intact.
  9. */
  10.  
  11. #ifndef __ERROR0_H
  12. #define __ERROR0_H
  13.  
  14. #ifndef __WINDOWS_H
  15. #define STRICT
  16. #include <windows.h>
  17. #endif /* __WINDOWS_H */
  18.  
  19. #define ErrorHandler     ERRORHANDLER    //Change to uppercase, DLL exports
  20.                     //ErrorHandler as an uppercase.
  21.  
  22. /* exported functions */
  23. /*
  24.    CreateStatusWindow(     DWORD dwStyle, int x0, int y0, int dx, int dy, 
  25.             HWND hwndParent, HINSTANCE hInst );
  26.    DWORD dwStyle    -window style, passed unchanged to CreateWindow
  27.    int x0, y0        -coordinates (hor, vert) of an upper left corner
  28.    int dx, dy        -width and height of the status bar window.
  29.    HWND hwndParent    -handle of the parent window.
  30.    HINSTANCE hInst    -handle of the instance this window belongs to.
  31.             (NOT a DLL instance!!!)
  32.     
  33.     Returns:
  34.     Handle of the status bar window on success, NULL otherwise.
  35. */
  36. HWND WINAPI        CreateStatusWindow    ( DWORD, int, int, int, int, HWND, HINSTANCE );
  37.  
  38. /*
  39.    ErrorHandler( HWND hwndSB, LPSTR lpszFormat, ... );
  40.  
  41.    HWND hwndSB        -handle of Status Bar window;
  42.    LPSTR lpszFormat    -format string followed by arguments
  43.                (same as wsprintf());
  44. */
  45. VOID FAR CDECL        ErrorHandler        ( HWND, LPSTR, ... );
  46.  
  47. /*
  48.    DLL also exports several other functions. You will get a full version of
  49.    this header file with explanations and definitions if you register.
  50. */
  51.   
  52. #endif /* __ERROR_H */